<template>
  <div>
    <!-- 职位顶部导航 -->
    <router-link to="/job/find">发现</router-link>
    <router-link to="/job/shixi">实习</router-link>
    <router-link to="/job/jianjob">兼职</router-link>
    <router-link to="/job/alljob">全职</router-link>
    <span @click="shenfen()">学生版<van-icon name="arrow" /></span>
    <span @click="search()"><van-icon name="search" /></span>
  </div>
</template>

<script>
export default {
  methods:{
    shenfen(){
      this.$router.push('/shenfen')
    },
    search() {
      // beforeRouteLeave(to,from,next){
      //   next('/job')
      // }
      this.$router.push('/search')
    }
  }
};
</script>

<style scoped>
div {
  display: flex;
  align-items: center;
  width: 100%;
  height: 0.55rem;
  background: #39c0ba;
}
div > a {
  margin: 0.1rem;
  font-size: 0.18rem;
  color: #a7eeed;
}
div > a:first-child {
  margin-left: 0.28rem;
}

div > span {
margin: 0.1rem;
    font-size: 0.12rem;
    color: #fff;
    border: 0.01rem solid;
    padding: 0.04rem;
    border-radius: 0.04rem;
}
div span:nth-child(6) {
  border: 0;
  font-size: 0.22rem;
}
.router-link-active {
  color: white;
  font-size: 0.2rem;
}
</style>